import { createStore, applyMiddleware } from "redux";
import { composeWithDevTools } from "redux-devtools-extension";
import Reducer from "./reducer";
import thunk from "redux-thunk";
// 要配置redux-devtools-extension 否则插件没办法再浏览器端正常使用
// 用法就是用composeWithDevTools()包裹中间件applyMiddleware
const store = createStore(Reducer, composeWithDevTools(applyMiddleware(thunk)));

export default store;
